﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Business.Tools
{
    public static class ValidationText
    {
        public static void isNumber(string validationText, string isIn)
        {
            try
            {
                Convert.ToInt32(validationText);                
            }
            catch (FormatException) 
            {
                throw new Exception("El campo " + isIn + " no es un entero válido");
            }            
        }
    }
}
